package com.dabay.web.wsdlserverwork;

public class WssJyProxy implements com.dabay.web.wsdlserverwork.WssJy {
  private String _endpoint = null;
  private com.dabay.web.wsdlserverwork.WssJy wssJy = null;
  
  public WssJyProxy() {
    _initWssJyProxy();
  }
  
  public WssJyProxy(String endpoint) {
    _endpoint = endpoint;
    _initWssJyProxy();
  }
  
  private void _initWssJyProxy() {
    try {
      wssJy = (new com.dabay.web.wsdlserverwork.WsServiceLocator()).getWssJyImpPort();
      if (wssJy != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wssJy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wssJy)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wssJy != null)
      ((javax.xml.rpc.Stub)wssJy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.dabay.web.wsdlserverwork.WssJy getWssJy() {
    if (wssJy == null)
      _initWssJyProxy();
    return wssJy;
  }
  
  public java.lang.String tzc_sys_api(java.lang.String id, java.lang.String cs) throws java.rmi.RemoteException{
    if (wssJy == null)
      _initWssJyProxy();
    return wssJy.tzc_sys_api(id, cs);
  }
  
  
}